package org.example.utils;

import java.util.UUID;

/**
 * 文件上传工具类 使用 UUID 生成文件名
 */
public class FileUploadUtils {
	public static String getFileName(String name) {
		String houzhui = name.substring(name.lastIndexOf("."), name.length());
		UUID uuid = UUID.randomUUID();
		String fileName = uuid.toString() + houzhui;
		return fileName;
	}
}
